raar.process.sensor
Class RACameraSensor

java.lang.Object
  extended byraar.process.RAProcess
      extended byraar.process.sensor.RASensor
          extended byraar.process.sensor.RARegionSensor
              extended byraar.process.sensor.RACameraSensor
All Implemented Interfaces:
java.io.Serializable

public class RACameraSensor
extends RARegionSensor

A sensor that models an object recognition device.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.process.sensor.RASensor
emulateRegisterNames, emulateRegisterObjects, output, outputName
 
Fields inherited from class raar.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Constructor Summary
RACameraSensor(RAAgent agent)
           
 
Method Summary
 java.lang.String explain()
          Give a String that explains what the sensor does.
 java.awt.Shape getRegion(double currentX, double currentY, double currentA)
          Give the sensor region, given that the sensor's origin is at the coördinate (x,y).
 RADataType giveSensorInformation(double currentX, double currentY, RAWorldObject[] objectsInRegion)
          Give the sensor reading, given that the sensor's origin is at the coördinate (x,y) and that the objects provided are within the sensor's region.
 java.lang.String toString()
          String representation!
 
Methods inherited from class raar.process.sensor.RARegionSensor
run
 
Methods inherited from class raar.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, set, setAgent, setOutput, setSourceCode, suppliesOutput
 
Methods inherited from class raar.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RACameraSensor

public RACameraSensor(RAAgent agent)
               throws RAException
Method Detail

getRegion

public java.awt.Shape getRegion(double currentX,
                                double currentY,
                                double currentA)
Give the sensor region, given that the sensor's origin is at the coördinate (x,y).

Specified by:
getRegion in class RARegionSensor

giveSensorInformation

public RADataType giveSensorInformation(double currentX,
                                        double currentY,
                                        RAWorldObject[] objectsInRegion)
Give the sensor reading, given that the sensor's origin is at the coördinate (x,y) and that the objects provided are within the sensor's region. Always provide one and the same type of RADataType; do not return null.


toString

public java.lang.String toString()
String representation!

Specified by:
toString in class RASensor

explain

public java.lang.String explain()
Give a String that explains what the sensor does.

Specified by:
explain in class RASensor